package com.lubase.export.service;

import com.lubase.orm.QueryOption;
import com.lubase.orm.model.DbCollection;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface ExportsExtendService {

    void ExportByIds(String TableId, String Ids, HttpServletResponse response) throws IOException;

    void ExportByQuery(DbCollection collection, HttpServletResponse response, String name, String suffixes) throws IOException;

    void ExportModel(String tableName,String tableId, HttpServletResponse response) throws IOException;

    boolean Import(String tableName,String tableId, MultipartFile file) throws IOException;

    void ExportByQueryAll(QueryOption serverQuery, HttpServletResponse response, String name, String suffixes) throws IOException;
}
